<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>5.v-model</title>
        <!-- 引入Vue -->
        <script type="text/javascript" src="../js/vue.js"></script>
    </head>
    <body>
        <!-- 准备好一个容器-->
        <div id="app">
            v-bind:单向数据绑定<input type="text"  v-bind:value="str"  /><br><br><br><br>
            v-model:双向数据绑定<input type="text"  v-model:value="str"  /><br><br><br><br>

            <!-- <a v-model:a="str" ></a> -->

            v-model简写形式：<input type="email" v-model="email" ><br><br><br><br>


            <hr><hr>

            lazy 修饰符<input type="email" v-model.lazy="email" ><br><br><br><br>

            number 修饰符<input type="email" v-model.number="email" ><br><br><br><br>

            trim 修饰符<input type="email" v-model.trim="email" ><br><br><br><br>
        </div>
    </body>

    <script type="text/javascript">
        new Vue({
            el:"#app",
            data:{
                str:"学习v-model指令",
                email:"23512353415"
            }
        })
        
    </script>
</html>